import request from '@/utils/request'

// 查询采集错误日志列表
export function listBoxErrLog(query) {
  return request({
    url: '/pile/boxErrLog/list',
    method: 'get',
    params: query
  })
}

// 查询采集错误日志所有列表
export function listAllBoxErrLog(query) {
  return request({
    url: '/pile/boxErrLog/listAll',
    method: 'get',
    params: query
  })
}

// 查询采集错误日志详细
export function getBoxErrLog(id) {
  return request({
    url: '/pile/boxErrLog/getInfo/' + id,
    method: 'get'
  })
}

// 新增采集错误日志
export function addBoxErrLog(data) {
  return request({
    url: '/pile/boxErrLog/add',
    method: 'post',
    data: data
  })
}

// 修改采集错误日志
export function updateBoxErrLog(data) {
  return request({
    url: '/pile/boxErrLog/edit',
    method: 'post',
    data: data
  })
}

// 删除采集错误日志
export function delBoxErrLog(id) {
  return request({
    url: '/pile/boxErrLog/remove/' + id,
    method: 'get'
  })
}
